Tree node with ItemEditor plugin
View code
Click the contents area, or double-click any node area began to edit.
单击内容区域,或者双击节点任何区域开始编辑。
|
|
Edited nodes:
Changed nodes:
|
var editor = new fly.mini.ItemEditor({
//双击节点或点击 textDom 开始编辑节点
// Double-click the node or click on the
textDom start editing node
startEvents: {
panel: "dblclick",
textDom: 'click'
},
//在开始编辑时执行
// In the beginning when edit execution
onStart: function (item)
{ },
//在结束编辑时执行
// In the end when edit execution
onEnd: function
(item) {
}
});
var tree = new fly.mini.Tree({
//plugins
plugins: [editor],
data: items_hasIcon
});